package com.china08.yxyapi.repository.db.live;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.china08.yxyapi.entity.db.live.YxyLiveCatalog;

public interface YxyLiveCatalogRepository extends JpaRepository<YxyLiveCatalog, String> {

    public List<YxyLiveCatalog> findBySchoolIdOrderByOrderNumAscCreatedDateAsc(String schoolId);

    public Integer countBySchoolIdAndLevelAndPid(String schoolId, Integer catalogLeave, String catalogPid);

    public YxyLiveCatalog findById(String catalogId);

    public List<YxyLiveCatalog> findByPid(String catalogId);

    public List<YxyLiveCatalog> findBySchoolIdAndPidOrderByOrderNumAscCreatedDateAsc(String schoolId, String pid);

}
